{include file="header.tpl"}

	<h1>Edit {$lookup_name}</h1>

   {include file="admin_sidebar.tpl"}

   <div id="content">
   
      {include file="flashes.tpl"}

   	<form id="frm_lookup" action="" method="post">
   
   		<fieldset class="panel">
   			
   			<div>
   				<label for="description">Description:</label>
        			<input id="description" name="description" type="text" value="{$lookup.description}" />
        			{if $lookup.errors.description}<p class="error">{$lookup.errors.description}</p>{/if}
   	 		</div>
   			
   			{if $lookup.system_type}
   			<div>
   				<label for="system_type">System Type:</label>
        			<select id="system_type" name="system_type">
                  {foreach item=desc from=$system_types}
                  <option value="{$desc}"{if $desc == $lookup.system_type}{$spf.selected}{/if}>{$desc}</option>
                  {/foreach}
   				</select>
   	 		</div>
   	 		{/if}
      		
   			<div>
   				<label>Active:</label>
        			<div class="option">
        			   <label for="active_1" class="option"><input type="radio" id="active_1" name="active" value="1" {if $lookup.active}{$spf.checked}{/if} /> Yes</label>
        			</div>
        			<div class="option">
        			   <label for="active_0" class="option"><input type="radio" id="active_0" name="active" value="0" {if !$lookup.active}{$spf.checked}{/if} /> No</label>
        			</div>
   	 		</div>
   	 		
   		</fieldset>
   		
   		<div class="button_bar">
   			<button type="submit" name="submit_frm_lookup" value="1">Submit</button>
   			<button type="button" onclick="spf.navigate('lookup', 'browse', '{$table_name}')">Cancel</button>
   		</div>
   		
   	</form>
   	
      <div class="clear"></div>
      
   </div>
   
{include file="footer.tpl"}
